package rootpackege;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import rootpackege.spring.controller.ConfigClass;
import rootpackege.spring.mail.MailConfig;
import rootpackege.spring.websocket.basicwebsocket.WebSocketConfig;
import rootpackege.spring.websocket.stompwebsocket.StompWebsocketConfig;

/**
 * javaConfig的根配置文件  是spring的根配置文件，即将所有的spring的配置文件汇总到这个config中
 * @author BriansPC
 *
 */

@Configuration
@ComponentScan(basePackages = {"rootpackege"},
			excludeFilters = {@Filter(type = FilterType.ANNOTATION , value = EnableWebMvc.class)})
//导入javaCOnfig 配置文件
@Import({ConfigClass.class,MailConfig.class,StompWebsocketConfig.class})//WebSocketConfig.class
//导入.xml资源文件格式
@ImportResource({"classpath:spring/application.xml"})
public class RootConfig {
	
}
